package com.wing.setting.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.setting.model.entity.SysSetting;
import com.wing.setting.model.request.SysSettingForm;
import com.wing.setting.model.response.SysSettingVO;
import com.wing.setting.model.response.SystemOfficialInfoVO;

import java.util.List;
import java.util.Map;

/**
 * 刀具柜系统设置-Service
 *
 * @author
 */
public interface SysSettingService extends IService<SysSetting> {

    /**
     * 添加
     *
     * @param sysSettingForm
     * @return
     */
    int add(SysSettingForm sysSettingForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<SysSettingVO> list4app(Map<String, Object> params);

    SysSettingVO settingList();

    List<SysSettingVO> getSettingListAdmin();

    SysSettingVO getAdvertList();

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<SysSettingVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    SysSettingVO get4appById(Long id);

    SysSettingVO getSettingAdvertInfo();

    SysSettingVO getSettingCabInfo();

    Boolean upSetting(SysSettingVO sysSettingVO);


    boolean addSetting(List<SysSettingForm> settingForm);


    SysSettingVO getStartSetting(Map<String, Object> params);

    JsonResult addSettingList(SysSettingVO sysSettingVO);

    List<SysSettingVO> getSettingListByParam(Map<String, Object> params);

    SysSettingVO getVideoByChannelCode(String channelCode);

    SysSetting getOne(Integer type,String enterpriseCode);

    SystemOfficialInfoVO getSystemOfficialInfo();

}
